<route lang="json5" type="page">
{
  layout: 'default',
  style: {
    navigationBarTitleText: '设置',
  },
}
</route>
<template>
  <view class="m-3">
    <wd-cell title="用户协议与隐私政策" is-link to="/pages/user-privacy/user-privacy" />
    <htm-button custom-class="mt-5" block type="primary" @click="handleQuit">退出按钮</htm-button>
  </view>
</template>
<script lang="ts" setup>
import { useProfileStore } from '@/store'

const profileStore = useProfileStore()
const handleQuit = () => {
  profileStore.clearProfileInfo()
  uni.navigateTo({
    url: '/pages/login/login',
  })
}
</script>
<style lang="scss" scoped></style>
